import request from "@/api/index.js"
// 获取热门前十榜单吐槽文章
export function getHotDiscloseApi() {
	return request({
		url: `/IntactArticle/hottestRecommendation`,
		method: "get",
	})
}
// 获取热门用户
export function getHotUseApi() {
	return request({
		url: `/user/activeUser`,
		method: "get",
	})
}
// 搜索建议列表 TODO
export function getSearchSuggestApi(value) {
	return request({
		url: `/IntactArticle/contentPrompt?content=${value}`,
		method: "get",
	})
}
// 搜索吐槽
export function getSearchDiscloseApi(value,pagenum) {
	return request({
		url: `/IntactArticle/allSearch?content=${value}&page=${pagenum}`,
		method: "get",
	})
}
// 搜索用户
export function getSearchUserApi(value,pagenum) {
	return request({
		url: `/user/search?content=${value}&page=${pagenum}`,
		method: "get",
	})
}